if (summaryItem.source.handleSummaryClick()) {
this._setClickedSummaryItem(null);
} else {
- this._setClickedSummaryItem(summaryItem, button);
+ if (!this._setClickedSummaryItem(summaryItem, button))
+ this._setClickedSummaryItem(null);
}
this._updateState();
_setClickedSummaryItem: function(item, button) {
if (item == this._clickedSummaryItem &&
button == this._clickedSummaryItemMouseButton)
- return;
+ return false;
if (this._clickedSummaryItem) {
this._clickedSummaryItem.actor.remove_style_pseudo_class('selected');
this._trayMotionId = Main.layoutManager.trayBox.connect('notify::anchor-y',
Lang.bind(this, this._adjustSummaryBoxPointerPosition));
}
+
+ return true;
},
_onSummaryBoxPointerUngrabbed: function() {